package com.example.provider;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;

/**
 * 
 * @author Gao
 * @date 2021/7/19
 */
@Service
@RefreshScope
public class TestService {

    @Value("${username}")
    private String username;

    public String getUserName() {
        return username;
    }
}
